package cn.com.connext.scrm.domain.master;


import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.ZonedDateTime;
import java.util.Date;

@Entity
@Table(name = "task")
public class Task implements UUIDDomain {
    @Id
    private String id;//主键

    @Column(name = "task_name")
    private String taskName; //任务名称

    @Column(name = "description")
    private String description;//描述

    @Column(name = "content")
    private String content;//内容

    @Column(name = "enable_flag", nullable = false)
    private boolean enableFlag; //是否启用

    @Column(name = "point")
    private Integer point;//积分

    @Column(name = "type")
    private Integer type;//分类

    @Column(name = "reorder")
    private Integer reorder;//排序

    @Column(name = "button_name")
    private String buttonName;//按钮名称

    @Column(name = "jump_path")
    private String jumpPath;//跳转路径

    @Column(name = "create_time")
    private Date createTime; //创建时间

    @Column(name = "update_time")
    private Date updateTime; //创建时间


    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public boolean isEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(boolean enableFlag) {
        this.enableFlag = enableFlag;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer point) {
        this.point = point;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getButtonName() {
        return buttonName;
    }

    public void setButtonName(String buttonName) {
        this.buttonName = buttonName;
    }

    public String getJumpPath() {
        return jumpPath;
    }

    public void setJumpPath(String jumpPath) {
        this.jumpPath = jumpPath;
    }

    public Integer getReorder() {
        return reorder;
    }

    public void setReorder(Integer reorder) {
        this.reorder = reorder;
    }
}
